package es.deusto.eside.programacion4.mario2d.model;

import org.newdawn.slick.Image;
import org.newdawn.slick.SlickException;

/**
 * Clase bonus
 * 
 * @author Sergio
 * 
 */
public class FlowerAndGrow {
	/**
	 * Imagen de flor
	 */
	Image flower;
	/**
	 * Imagen de seta
	 */
	Image mushroom;
	/**
	 * Puntos
	 */
	int points = 100;
	/**
	 * Posicion x
	 */
	int positionX;
	/**
	 * Posicion y
	 */
	int positionY;

	/**
	 * @return the taken
	 */
	public boolean isTaken() {
		return taken;
	}

	/**
	 * @param taken
	 *            the taken to set
	 */
	public void setTaken(boolean taken) {
		this.taken = taken;
	}

	/**
	 * Indica si ha sido cogido
	 */
	boolean taken = false;

	/**
	 * Constructor
	 * 
	 * @param x
	 * @param y
	 */
	public FlowerAndGrow(int x, int y) {
		this.positionX = x;
		this.positionY = y;
		try {
			flower = new Image("resources/Images/flower.png");
		} catch (SlickException e) {
			e.printStackTrace();
		}
		try {
			mushroom = new Image("resources/Images/mushroom.png");
		} catch (SlickException e) {
			e.printStackTrace();
		}
	}

	/**
	 * @return the flower
	 */
	public Image getFlower() {
		return flower;
	}

	/**
	 * @param flower
	 *            the flower to set
	 */
	public void setFlower(Image flower) {
		this.flower = flower;
	}

	/**
	 * @return the mushroom
	 */
	public Image getMushroom() {
		return mushroom;
	}

	/**
	 * @param mushroom
	 *            the mushroom to set
	 */
	public void setMushroom(Image mushroom) {
		this.mushroom = mushroom;
	}

	/**
	 * @return the points
	 */
	public int getPoints() {
		return points;
	}

	/**
	 * @param points
	 *            the points to set
	 */
	public void setPoints(int points) {
		this.points = points;
	}

	/**
	 * @return the positionX
	 */
	public int getPositionX() {
		return positionX;
	}

	/**
	 * @param positionX
	 *            the positionX to set
	 */
	public void setPositionX(int positionX) {
		this.positionX = positionX;
	}

	/**
	 * @return the positionY
	 */
	public int getPositionY() {
		return positionY;
	}

	/**
	 * @param positionY
	 *            the positionY to set
	 */
	public void setPositionY(int positionY) {
		this.positionY = positionY;
	}
}
